﻿using Microsoft.EntityFrameworkCore;
using Polaris.Domain.Model.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.Dto.Sys_Menu.Request
{
    public class CreateMenuRequest
    {
        /// <summary>
        /// 上级id，为空则是顶级菜单
        /// </summary>
        public Guid? ParentID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        public string? Router { get; set; }

        /// <summary>
        /// 页面路径
        /// </summary>
        public string? PageUrl { get; set; }

        /// <summary>
        /// 菜单类型 1目录，2菜单，3按钮
        /// </summary>
        public MenuType MenuType { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? MenuIcon { get; set; }

        /// <summary>
        /// 排序，数字越大，排序越前
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Enable { get; set; }
    }
}
